package com.ygf.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * <p>
 * description:
 * </p>
 *
 * @author yangguanfeng
 * @since 2021/4/27 11:20
 */
@Component
public class TestListener implements ApplicationListener<TestEvent> {


	@Override
	public void onApplicationEvent(TestEvent event) {

		final String eventName = event.getEventName();
		System.out.println("=======接口实现的事件监听=======" + eventName);

	}
}


